package siftest.facebookandroid;

import sif.siffacebook.AsyncFacebookRunner;
import siftest.facebookandroid.R.id;
import android.os.Bundle;
import android.view.Display;
import android.view.View;
import android.widget.LinearLayout;

public class SiftestActivity extends Application {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.master);
		Include.mAsyncRunner= new AsyncFacebookRunner(Include.facebook);
		Interface.menu_top = (LinearLayout) findViewById(id.layoutTopMenu);
		Interface.menu_content= (LinearLayout) findViewById(id.layoutContent);
		Interface.menu_bottom= (LinearLayout) findViewById(id.layoutBottomMenu);
		Display display = getWindowManager().getDefaultDisplay();
		Include.displayWidth = display.getWidth();
		Include.displayHieght = display.getHeight();
		Include.inflate =getLayoutInflater();
		View content= Include.inflate.inflate(R.layout.add,null);
		Interface.menu_content.addView(content);
		/**
		 * load interface SIF
		 */
		getInterfacesif();
		/**
		 * Login Facebook
		 */
		loginToFacebook();
		/**
		 * load data profile
		 */
		// getProfileInformation();
		/**
		 * load data list friend
		 */
		// getFriends();
		/**
		 * get Album picture not oke
		 */
		//getAlbums();
		/**
		 * load News Feed oke
		 */
		//NewsFeed();
		/**
		 * load feed oke
		 */
		//getFeed();
		/**
		 * load books
		 */
		getBooks();
		
		
		
	}
	
}
